package study09;

interface Animal {
    void sleep();
}

class Cat implements Animal {
    @Override
    public void sleep() {
        System.out.println("熊猫正在烧香");
    }

    public void catchMouse() {
        System.out.println("猫在抓老鼠");
    }
}

// Test01类
public class Test2 {
    public static void main(String[] args) {
        Animal catAsAnimal = new Cat();

        catAsAnimal.sleep();

    }
}

